package com.baiyang.app;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MainViewModel extends ViewModel {

    private MutableLiveData<String> second;
    public MainViewModel(){
        second = new MutableLiveData<>();
    }
    public void setSecond(String second){
        this.second.postValue(second);
    }
    public LiveData<String> getSecond(){
        return second;
    }

}
